package lyn;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lyn
 * Date: 2025-01-19
 * Time: 13:15
 */
class Person{
    public Person(){
        System.out.println("Person构造方法执行");
    }
    {
        System.out.println("Person实例代码块执行");
    }
    static {
        System.out.println("Person静态代码块执行");
    }
}
class Student extends Person{
    public Student(){
        System.out.println("Student构造方法执行");
    }
    {
        System.out.println("Student实例代码块执行");
    }
    static {
        System.out.println("Student静态代码块执行");
    }
}
public class lynnn {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println("==================");
        Student student = new Student();
    }
}
class A{//......}
class B extends A{//......}
class C extends A{//......}

